package com.huabo.system.service;


import com.hbfk.entity.TblStaffUtil;
import com.hbfk.util.PageInfo;
import com.huabo.system.mysql.entity.ProcessSettingMySql;
import com.huabo.system.oracle.entity.ProcessSetting;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


public interface ProcessSettingService {


    Map<String, Object> findByList(Integer pageNumber, Integer pageSize, String token, String staffId);

    ProcessSetting get(BigDecimal settingid);

    ProcessSettingMySql getMy(BigDecimal settingmyid);

    void update(ProcessSetting processSetting);

    Map<String, Object> findByLi(Integer pageNumber, Integer pageSize, String token);


    String deleteProcessInstance(String[] ids);


    void savemerge(ProcessSetting setting);

    void delete(BigDecimal settingId);

    ProcessSetting getByModuel(String definitionName);

    List<String> getButtonsForTransition(String tid);


    PageInfo todoList(PageInfo<ProcessSetting> pageInfo, TblStaffUtil staff, BigDecimal orgid, BigDecimal staffid);

    PageInfo todoMySqlList(PageInfo<ProcessSettingMySql> pageInfo, TblStaffUtil staff, BigDecimal orgid, BigDecimal staffid);

    /**
     * 查询用户代办任务
     * <p>Title:</p>
     * <p>Description:</p>
     *
     * @author SongXiangYing
     * @date 2016年12月7日 下午5:35:36
     */
    PageInfo todoList(TblStaffUtil staff, int start, int pageSize, String orgName);

    Map<String, Object> toList(String token, Integer pageNumber, Integer pageSize) throws Exception;
}
